#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time    : 2024/7/18 11:26
# @File    : table.py
# @Description : -i http://pypi.tuna.tsinghua.edu.cn/simple/ --trusted-host pypi.tuna.tsinghua.edu.cn


import tkinter as tk
from tkinter import (
    ttk,
    Scrollbar,
    HORIZONTAL,
    VERTICAL,
    BOTTOM,
    RIGHT,
    X,
    Y
)


class Table(tk.Frame):

    def __init__(self, *args, **kwargs):
        super().__init__(*args, **kwargs)

        self.x_scroll = Scrollbar(self, orient=HORIZONTAL, command=self.on_X_ScrollCommand)
        self.y_scroll = Scrollbar(self, orient=VERTICAL, command=self.on_Y_ScrollCommand)
        self.x_scroll.pack(side=BOTTOM, fill=X)
        self.y_scroll.pack(side=RIGHT, fill=Y)

    def header(self):
        pass

    def tr(self):
        # 行
        pass

    def td(self):
        # 行中列
        pass

